set the castNum of sprite spriteNum to the number of member value(castnumber + 1)
else
set the castNum of sprite spriteNum to the number of member castnumber
end if
updateStage()
end repeat
set the castNum of sprite spriteNum to the number of member castnumber
updateStage()
if not keepOn then
puppetSprite(spriteNum, 0)
end if
if rollOver(spriteNum) then
do(string(buttonPressed))
end if
end
on startMovie
global setuplist, QuesfileName
set action to getaProp(setuplist, #action)
case action of
"new":
put string("Creating a new file will close the file you are working on. Do you want to save changes to" && QUOTE & ALERTStripText() & QUOTE && "before starting another?") into field 11
go("base")
"convert":
put string("Updating a file from Gameshow Pro I will close the file you are working on." & RETURN & RETURN & "Do you want to save changes to" && QUOTE & ALERTStripText() & QUOTE && "before starting another?") into field 11
go("base")
"open":
put string("Opening another file will close the file you are working on. Do you want to save changes to" && QUOTE & ALERTStripText() & QUOTE && "before opening another?") into field 11
go("base")
"quit":
put string("Do you want to save changes to" && QUOTE & ALERTStripText() & QUOTE && "before quitting?") into field 11
go("base")
"revert":
put string("Reverting will discard any changes since this file was last saved") into field 11
go("revert")
"gotoSet":
go("gotoset")
"gotoQues":
go("gotoques")
end case
puppetSound(0)
end
on DontSave
tell the stage
AlertDontSave()
end tell
end
on Cancel
tell the stage
AlertCancel()
end tell
end
on save
tell the stage
AlertSave()
end tell
end
on revert
tell the stage
AlertRevert()
end tell
end
on Exittosetup
tell the stage
GotoGame(1)
end tell
end
on exittoques
tell the stage
GotoM1(1)
end tell
end
on ALERTStripText
global QuesfileName, BasePath
set holder to the itemDelimiter
set the itemDelimiter to the last char in BasePath
set lastitem to the last item in QuesfileName
set the itemDelimiter to holder
if (the platform contains "Macintosh") or (QuesfileName = "Untitled") then
return lastitem
exit
end if
set strippedText to char 1 to the number of chars in QuesfileName - 4 of QuesfileName